package itdfq.dfq.Creational_Pattern.gongchang;

/**
 * @Author GocChin
 * @Date 2021/3/20 11:18
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("段方钦 18031210111");
        try{
            Phone phone;
            PhoneFactory factory;
            factory  = (PhoneFactory) XMLUtil.getBean();
            phone = factory.productPhone();
            phone.playGame();
        }
        catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
